package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author shuiyun
 * @program gateway
 * @description 终端注册
 * @date 2022-04-19 19:00
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@Message(JT808.终端注册0x0100)
public class T0100 extends JTMessage {

    @FieldValue(type = DataType.WORD, desc = "省域ID")
    private Integer provinceId;

    @FieldValue(type = DataType.WORD, desc = "市县域ID")
    private Integer cityId;

    @FieldValue(type = DataType.STRING, length = 11, desc = "制造商ID")
    private String makerId;

    @FieldValue(type = DataType.STRING, length = 30, desc = "终端型号")
    private String deviceModel;

    @FieldValue(type = DataType.STRING, length = 30, desc = "终端ID")
    private String deviceId;

    @FieldValue(type = DataType.BYTE, desc = "车牌颜色")
    private Integer plateColor;

    @FieldValue(type = DataType.STRING,desc = "车辆标识")
    private String plateNo;
}
